<html>
<head><meta charset="utf-8"><title>Getting mir-opt to emit dumps · t-compiler/wg-mir-opt · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/index.html">t-compiler/wg-mir-opt</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/Getting.20mir-opt.20to.20emit.20dumps.html">Getting mir-opt to emit dumps</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209811986"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/Getting%20mir-opt%20to%20emit%20dumps/near/209811986" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Braden Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/Getting.20mir-opt.20to.20emit.20dumps.html#209811986">(Sep 11 2020 at 17:40)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/blob/master/src/test/mir-opt/README.md">https://github.com/rust-lang/rust/blob/master/src/test/mir-opt/README.md</a> Looking through this and trying to get it to emit dumps for my new test, but <code> ./x.py test --stage 1 --bless src/test/mir-opt/simple_range_analysis.rs</code> doesn't seem to work at all. The function being tested is commented based on the info in the readme and what it looks like in the other tests.<br>
<a href="https://pybin.pw/Fh1L">https://pybin.pw/Fh1L</a> test code<br>
Also this was posted in the wrong wg at first, my bad.</p>



<a name="209816989"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/189540-t-compiler/wg-mir-opt/topic/Getting%20mir-opt%20to%20emit%20dumps/near/209816989" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Wesley Wiser <a href="https://rust-lang.github.io/zulip_archive/stream/189540-t-compiler/wg-mir-opt/topic/Getting.20mir-opt.20to.20emit.20dumps.html#209816989">(Sep 11 2020 at 18:22)</a>:</h4>
<p>You also need a line like this in your test to tell the harness what to dump <a href="https://github.com/rust-lang/rust/blob/d778203da2157f47af6d1f7ba5f44eb933ee2df1/src/test/mir-opt/address-of.rs#L1">https://github.com/rust-lang/rust/blob/d778203da2157f47af6d1f7ba5f44eb933ee2df1/src/test/mir-opt/address-of.rs#L1</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>